package ord2.search;

import ord2.core.AbstractFactory;

/**
 * This class is used to store all searchers that can be used by the system.
 * Each searcher has a name that represents it.
 *
 * @author José Ivan
 * @author Edviges
 *
 */
public final class SearcherFactory extends AbstractFactory<String, Searcher> {
    
    private static SearcherFactory instance = null;
    
    private SearcherFactory() {
        
        super();
    }
    
    /**
     * Gets a instance of this converter to be used.
     * @return A instance of this factory
     */
    public static SearcherFactory getInstance() {
        
        if (instance == null) {
            
            instance = new SearcherFactory();
        }
        
        return instance;
    }
}
